﻿<UserControl x:Class="PhotoKiosk.View.PhotoSectionView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
            mc:Ignorable="d" d:DesignHeight="400" d:DesignWidth="400">
    <Grid Margin="5,5,5,5">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="5*" />
            <RowDefinition Height="5" />
            <RowDefinition Height="3*" />
        </Grid.RowDefinitions>
        <Grid.Style>
            <Style TargetType="Grid">
                <Setter Property="Background" Value="#22000000"/>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding IsSelected, Mode=OneWay}" Value="true">
                        <Setter Property="Background" Value="#222BBD31" />
                    </DataTrigger>
                </Style.Triggers>
            </Style>
        </Grid.Style>
        <Label Grid.Row="0" Content="{Binding FileName}" HorizontalContentAlignment="Center" Foreground="White" Background="#22000000"/>
        <Image Grid.Row="1" Source="{Binding PhotoPath}"/>
        <Grid Grid.Row="3" Background="#22000000" >
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" >
                <Button Content="-" Command="{Binding DecreaseNumberOfCopiesCommand}" Height="50" HorizontalAlignment="Left"  VerticalAlignment="Top" Width="50"  Background="#FFE85D5D" FontSize="25" FontWeight="Bold" Canvas.Left="206" Canvas.Top="10" Margin="0,0,5,0" />
                <Label Content="{Binding NumberOfCopies}" Height="50" HorizontalAlignment="Center"  FontSize="25" Width="50" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Canvas.Left="120" Canvas.Top="10" Foreground="White" />
                <Button Content="+" Command="{Binding IncreaseNumberOfCopiesCommand}" Height="50" HorizontalAlignment="Left" VerticalAlignment="Top" Width="50"  Background="#FF56C756" FontSize="25" FontStretch="Normal" Canvas.Left="46" Canvas.Top="10" BorderThickness="0" Margin="5,0,0,0"/>
            </StackPanel>
      </Grid>
    </Grid>
</UserControl>

